package com.etc.demo.model;

import com.etc.common.model.BaseModel;
import com.etc.demo.vo.DemoVO;

/**    
* @Title: DemoModel.java  
* @Package com.etc.demo.model  
* @Description: TODO 
* @author 黄宇    
* @date 2016年3月19日 下午6:41:18  
* @version V1.0    
*/
public class DemoModel extends BaseModel{

	private static final long serialVersionUID = 7729831036017573373L;
	
	private int id ;
	
	private String name;
	
	private String address;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public DemoVO model2VO(){
		DemoVO vo = new DemoVO();
		vo.setId(String.valueOf(this.id));
		vo.setName(this.name);
		vo.setAddress(this.address);
		return vo;
	}
	
}
